const {searchUserInfoById} = require("./index.service")
const {send} = require("@/zy-common/utils")

class UserController{
  async selectUserInfo(ctx,next){
    try {
      let {id} = ctx.user
      const user = await searchUserInfoById(id)
      send(ctx,200,'200','查询用户信息成功',user)
    } catch (error) {
      console.log(error);
    }
  }
}

module.exports = new UserController()